const fs = require('fs');
module.exports = {
	devServer: {
		before(app,serve){
			app.get('/api/goods/firstpage',(rep,res) => {
				fs.readFile('./datajosn/data.json','utf8',(err,data)=>{
					if(!err){
						res.json(JSON.parse(data));
					}
				})
			})
		}
	}
}